import {getList} from "@/api/system/greetingCard";

export default {
  hasPage: true,
  // hasCheck: true,
  // hasIndex: true,
  request: (params) => {
    return getList(params)
  },
  dataParse: (res) => {
    const resData = res.data.data || {}
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'name',
      label: '贺卡名称',
    },
    {
      prop: 'content',
      label: '贺卡内容',
      isSlot: true,
    },
    {
      prop: 'link',
      label: '贺卡链接',
      isSlot: true,
    },
    {
      prop: 'operator',
      label: '操作人',
    },
    {
      prop: 'updateTime',
      label: '更新时间',
    },
    {
      prop: 'operate',
      label: '操作',
      isSlot: true,
    }
  ]
}